package edu.spec.rxz.week08.class2;

public class Frog extends Animal implements IAnimal,IAmphibious,IHibernate {
        private String amphibian;   //两栖
        public Frog(){

        }
        public Frog(String name, String food, String area) {
            super(name, food, area);
        }

        @Override
        public String findFood(){
            return super.getName()+"找"+super.getFood();
        }

    @Override
    String wholelife() {
        return born()+findFood()+eat()+old()+sick()+die();
    }


    @Override
        public String born() {
            return super.getName()+"出生在"+super.getArea();
        }

        @Override
        public String old() {
            return super.getName()+"年纪大了";
        }

        @Override
        public String sick() {
            return super.getName()+"生病了";
        }

        @Override
        public String die() {
            return super.getName()+"死了";
        }

        @Override
        public String amphibious() {
            return super.getName()+"既能在水里生活也能在陆地上生活";
        }

        @Override
        public String hibernate() {
            return super.getName()+"在洞里冬眠4个月";
        }


    }


